//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.qst.crop.model;

import java.math.BigDecimal;
import java.util.Date;

public class MyPurchase {
    private Integer purchaseId;
    private String ownName;
    private Integer purchaseType;
    private BigDecimal totalPrice;
    private String address;
    private Integer purchaseStatus;
    private Date createTime;
    private Date updateTime;
    private String picture;

    public MyPurchase() {
    }

    public Integer getPurchaseId() {
        return this.purchaseId;
    }

    public String getOwnName() {
        return this.ownName;
    }

    public Integer getPurchaseType() {
        return this.purchaseType;
    }

    public BigDecimal getTotalPrice() {
        return this.totalPrice;
    }

    public String getAddress() {
        return this.address;
    }

    public Integer getPurchaseStatus() {
        return this.purchaseStatus;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }

    public String getPicture() {
        return this.picture;
    }

    public void setPurchaseId(final Integer purchaseId) {
        this.purchaseId = purchaseId;
    }

    public void setOwnName(final String ownName) {
        this.ownName = ownName;
    }

    public void setPurchaseType(final Integer purchaseType) {
        this.purchaseType = purchaseType;
    }

    public void setTotalPrice(final BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public void setAddress(final String address) {
        this.address = address;
    }

    public void setPurchaseStatus(final Integer purchaseStatus) {
        this.purchaseStatus = purchaseStatus;
    }

    public void setCreateTime(final Date createTime) {
        this.createTime = createTime;
    }

    public void setUpdateTime(final Date updateTime) {
        this.updateTime = updateTime;
    }

    public void setPicture(final String picture) {
        this.picture = picture;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof MyPurchase)) {
            return false;
        } else {
            MyPurchase other = (MyPurchase)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label119: {
                    Object this$purchaseId = this.getPurchaseId();
                    Object other$purchaseId = other.getPurchaseId();
                    if (this$purchaseId == null) {
                        if (other$purchaseId == null) {
                            break label119;
                        }
                    } else if (this$purchaseId.equals(other$purchaseId)) {
                        break label119;
                    }

                    return false;
                }

                Object this$purchaseType = this.getPurchaseType();
                Object other$purchaseType = other.getPurchaseType();
                if (this$purchaseType == null) {
                    if (other$purchaseType != null) {
                        return false;
                    }
                } else if (!this$purchaseType.equals(other$purchaseType)) {
                    return false;
                }

                label105: {
                    Object this$purchaseStatus = this.getPurchaseStatus();
                    Object other$purchaseStatus = other.getPurchaseStatus();
                    if (this$purchaseStatus == null) {
                        if (other$purchaseStatus == null) {
                            break label105;
                        }
                    } else if (this$purchaseStatus.equals(other$purchaseStatus)) {
                        break label105;
                    }

                    return false;
                }

                Object this$ownName = this.getOwnName();
                Object other$ownName = other.getOwnName();
                if (this$ownName == null) {
                    if (other$ownName != null) {
                        return false;
                    }
                } else if (!this$ownName.equals(other$ownName)) {
                    return false;
                }

                label91: {
                    Object this$totalPrice = this.getTotalPrice();
                    Object other$totalPrice = other.getTotalPrice();
                    if (this$totalPrice == null) {
                        if (other$totalPrice == null) {
                            break label91;
                        }
                    } else if (this$totalPrice.equals(other$totalPrice)) {
                        break label91;
                    }

                    return false;
                }

                Object this$address = this.getAddress();
                Object other$address = other.getAddress();
                if (this$address == null) {
                    if (other$address != null) {
                        return false;
                    }
                } else if (!this$address.equals(other$address)) {
                    return false;
                }

                label77: {
                    Object this$createTime = this.getCreateTime();
                    Object other$createTime = other.getCreateTime();
                    if (this$createTime == null) {
                        if (other$createTime == null) {
                            break label77;
                        }
                    } else if (this$createTime.equals(other$createTime)) {
                        break label77;
                    }

                    return false;
                }

                label70: {
                    Object this$updateTime = this.getUpdateTime();
                    Object other$updateTime = other.getUpdateTime();
                    if (this$updateTime == null) {
                        if (other$updateTime == null) {
                            break label70;
                        }
                    } else if (this$updateTime.equals(other$updateTime)) {
                        break label70;
                    }

                    return false;
                }

                Object this$picture = this.getPicture();
                Object other$picture = other.getPicture();
                if (this$picture == null) {
                    if (other$picture != null) {
                        return false;
                    }
                } else if (!this$picture.equals(other$picture)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof MyPurchase;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $purchaseId = this.getPurchaseId();
        result = result * 59 + ($purchaseId == null ? 43 : $purchaseId.hashCode());
        Object $purchaseType = this.getPurchaseType();
        result = result * 59 + ($purchaseType == null ? 43 : $purchaseType.hashCode());
        Object $purchaseStatus = this.getPurchaseStatus();
        result = result * 59 + ($purchaseStatus == null ? 43 : $purchaseStatus.hashCode());
        Object $ownName = this.getOwnName();
        result = result * 59 + ($ownName == null ? 43 : $ownName.hashCode());
        Object $totalPrice = this.getTotalPrice();
        result = result * 59 + ($totalPrice == null ? 43 : $totalPrice.hashCode());
        Object $address = this.getAddress();
        result = result * 59 + ($address == null ? 43 : $address.hashCode());
        Object $createTime = this.getCreateTime();
        result = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
        Object $updateTime = this.getUpdateTime();
        result = result * 59 + ($updateTime == null ? 43 : $updateTime.hashCode());
        Object $picture = this.getPicture();
        result = result * 59 + ($picture == null ? 43 : $picture.hashCode());
        return result;
    }

    public String toString() {
        return "MyPurchase(purchaseId=" + this.getPurchaseId() + ", ownName=" + this.getOwnName() + ", purchaseType=" + this.getPurchaseType() + ", totalPrice=" + this.getTotalPrice() + ", address=" + this.getAddress() + ", purchaseStatus=" + this.getPurchaseStatus() + ", createTime=" + this.getCreateTime() + ", updateTime=" + this.getUpdateTime() + ", picture=" + this.getPicture() + ")";
    }
}
